import {
  SHOW_LOADING,
  HIDE_LOADING
} from '../type'

const state = {
  status: false
}

const mutations = {
  [SHOW_LOADING](state) {
    state.status = true
  },
  [HIDE_LOADING](state) {
    state.status = false
  }
}

export default {
  state,
  mutations
}
